import type { IRoute } from 'umi'

export const routes: IRoute[] = [
    {
        path: '/',
        component: '@/layouts/index',
        routes: [
            { path: '/login', component: '@/pages/login/index' },
            { path: '/demo', component: '@/pages/demo/index' },
            { path: '/demo/detail', component: '@/pages/demo/detail' },

            /** -------------------- 年度报告 -------------------- */
            {
                title: '2024年马兰花创业培训年度报告',
                path: '/report/entry',
                component: '@/pages/report/entry',
            },
            {
                title: '2024年马兰花创业培训年度报告',
                path: '/report/nodata',
                component: '@/pages/report/common/NoReportDataPage',
            },
            {
                title: '生成报告',
                path: '/report/generate',
                component: '@/pages/report/common/generate',
            },
            {
                title: '分享报告',
                path: '/report/share',
                component: '@/pages/report/common/share',
            },
            {
                title: '分享指南',
                path: '/report/share/guide',
                component: '@/pages/report/common/shareGuide',
            },
            {
                title: '2024年马兰花创业培训年度报告-主管部门',
                path: '/report/department',
                component: '@/pages/report/department',
            },
            {
                title: '2024年马兰花创业培训年度报告-培训机构',
                path: '/report/trainer',
                component: '@/pages/report/trainer',
            },
            {
                title: '2024年马兰花创业培训年度报告-培训讲师',
                path: '/report/teacher',
                component: '@/pages/report/teacher',
            },
        ],
    },
]
